-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#9706: Allow time range filtering for Attribute Table quick filter #9743
Conversation
…ith different operators
…quick filter and allow additional filter operators for other attributes Description: - adding filter operators dropdown list in attribute table that includes range operator for time/date attributes - creating a custom picker for range - write unit tests - Edit in style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functionality works well, but there a few things to change and some inconsistencies/bugs to handle:
web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx
Outdated
Show resolved
Hide resolved
tooltipMsgId: PropTypes.string, | ||
operator: PropTypes.string, | ||
type: PropTypes.string, | ||
isWithinAttrTbl: PropTypes.bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that this should be removed in the future since also attribute table in dashboard should inherit timerange changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some extra points
web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx
Outdated
Show resolved
Hide resolved
web/client/components/misc/datetimepicker/CustomDateTimePickerWithRange.js
Outdated
Show resolved
Hide resolved
Desciption: - remove expression from filter inputs and make validation for the inputs - Add cursor style to 'Start' & 'End' tabs - Add validation for ranges - Replace 2 icons with one icon for date-time filter - Fix style issues - Fixed 'Start', 'End' tabs in scroll - improve style of operator - reset date/time if user change operator from range operator to another
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx
Outdated
Show resolved
Hide resolved
I don't know how can I get the attached icon, I searched for the icons in react-widget lib version 3.5.0 but I didn't find the required one
I have tried much time to use drop up but there is a big css issue I couldn't resolve it and during trying handle this point, it reflects on other css for the attribute table |
@MV88 scroll.in.dates.pickers.mp4 |
I'm sorry maybe you haven't done it before.
ok i'll try to give a better look, but maybe @allyoucanmap has a suggestion on this point |
at least you can view almost all data, there is still some part not well selectable |
@mahmoudadel54 @MV88 here the icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
things to do here
- use new icon made by @allyoucanmap
- solve conflict
- try to fix at least the bottom part of the datepicker
…quick filter * Description: - Add date-time icon and use it - replcae inline if - using omit instead of reduce - fix some style issues in date/time pickers in range component
…quick filter * Description: - Fix FE test failure
Description: - Improve UI of pickers by using popover component in dateTime/Date/Hours pickers - Enable update popover position in case of scroll the container conponent - write unit tests due to changes - Rename range date-time picker by 'RangedDateTimePicker'
Hi @MV88 UI.improvements.for.datetime.pickers.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: - Handle highlight selected hours component - Fix not alignment in dateTime picker - Fix not alignment selected date in calendar for date/ dateTime pickers - Minimize calendar row height to improve showing date picker UI - Create a util function 'getLocalTimePart' to get time part for local time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description: - Add placeholder for time picker - Add translations for the added time placeholder - Fix crash app bug due to entering invalid date in input texts of date/time Pickers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok. a few changes here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- there is an issue with the popover size when mode is changed in the calendar
popover.issue.in.height.change.of.content.container.mp4
Resizing the height of the popup to display calendar content doesn't look pleasing as the varying size makes it convoluted for user interactions. Hence a fixed height is used instead as shown below. Date filter Screen.Recording.2024-01-22.at.6.57.56.PM.movDate-time filter Screen.Recording.2024-01-22.at.7.02.33.PM.mov |
@MV88 can you please proceed asap with the review? |
@ElenaGallo please test it in DEV using a date, time and date time layer like this map https://dev-mapstore.geosolutionsgroup.com/mapstore/#/viewer/28584 |
Hi @dsuren1, I only notice that some filters, in edit mode, are enabled How to reproduce
|
@ElenaGallo please open a new issue for the above and assign it to refer to @dsuren1. |
@ElenaGallo The only problem I see is that when the field is disabled, the operator dropdown should be disabled too, as some are not, from the screenshot you shared. Additionally, the time fields are not disabled (in edit mode) and it should, which is an existing problem in QA. Kindly report this in the new issue. Thanks! |
@dsuren1 that's effectively the reason why I've asked to open a new issue. Thank you for clarifying this anyway. |
Description
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
#9706
What is the current behavior?
#9706
What is the new behavior?
Different filter operators dropdown is added to the attribute table columns including range time/date
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)